package cloudEntity.enumation;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @program: Smart School
 * @ClassName DormFloorEnum
 * @description: 楼层枚举
 * @author: 陈智博
 * @create: 2025-05-17 10:32
 * @Version 1.0
 **/
@Getter
public enum DormFloorEnum {

    HillFooter("山下",1),
    HillHeader("山上",2),
    DefaultNull("暂无",127);

    private final String sysHillName;
    private final Integer sysHillType;

    DormFloorEnum(String sysHillName, Integer sysHillType) {
        this.sysHillName = sysHillName;
        this.sysHillType = sysHillType;
    }


    public static String getDescriptionByValue(Integer value) {
        for (DormFloorEnum status : DormFloorEnum.values()) {
            if (status.getSysHillType().equals(value)) {
                return status.getSysHillName();
            }
        }
        return null; // 或者抛出异常，根据需求而定
    }

}
